import {baseAjax} from "../utils/baseAjax";

//考试意向树形结构(课程类型/考试流程)
export const postBaseConfig = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/base/config',
		type: 'post',
		data,
		success: successHandle
	})
}
//考试意向树形结构(课程类型/考试流程)
export const getTreeDictByCode = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/dict/tree/list',
		type: 'post',
		data,
		success: successHandle
	})
}

//轮播图列表
export const listBanner = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/banner/list',
		type: 'post',
		data,
		success: successHandle
	})
}

// 资讯详情
export const getArticleInfo = (id, successHandle) => {
	return baseAjax({
		url: '/api/index/article/lookup/' + id,
		type: 'get',
		success: successHandle
	})
}
// 资讯类别列表
export const listArticleCatalog = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/article/catalog/list',
		type: 'post',
		data,
		success: successHandle
	})
}
// 资讯列表
export const listArticle = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/article/list',
		type: 'post',
		data,
		success: successHandle
	})
}
// 关联意向考试资讯列表
export const listArticleByIntentExam = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/exam/article/list',
		type: 'post',
		data,
		success: successHandle
	})
}

// 老师列表
export const listTeacher = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/teacher/list',
		type: 'post',
		data,
		success: successHandle
	})
}
// 宣传语列表
export const listWelcome = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/welcome/list',
		type: 'post',
		data,
		success: successHandle
	})
}

// 合作方列表
export const listCompany = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/company/list',
		type: 'post',
		data,
		success: successHandle
	})
}
// 友情链接列表
export const listFriendlyLink = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/link/list',
		type: 'post',
		data,
		success: successHandle
	})
}
